package com.example.administrator.view;

import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.example.administrator.base.BaseActivity;
import com.example.administrator.testapk.R;

import butterknife.BindView;

public class  AtySetSearchPwd extends BaseActivity implements OnClickListener{

    @BindView(R.id.setpwd_title)
    TitleBar titleBar_setpwd;
    @BindView(R.id.btn_set)
    Button btn_set;
    @BindView(R.id.btn_change)
    Button btn_change;

    @Override
    protected int getLayoutResourceId() {
        return R.layout.aty_set_search_pwd;
    }

    @Override
    protected void init() {
        super.init();
    }

    @Override
    protected void initView() {

        titleBar_setpwd.setLeftImageResource(R.mipmap.back);
        titleBar_setpwd.setTitle("设置");
        titleBar_setpwd.setLeftClickListener(new OnClickListener() {

            @Override
            public void onClick(View arg0) {
                finish(); // back button
            }
        });

        btn_set.setOnClickListener(this);
        btn_change.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_set:
                overlay(AtySetPwd.class);
                break;
            case R.id.btn_change:
                overlay(AtyChangePwd.class);
                break;
        }
    }

}
